package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.Employee;

public interface EmployeeMapper {
	// 新增员工
	public int addEmployee(Employee employee);

	// 删除员工
	public int deleteEmployee(@Param("employee_id") int employee_id);

	// 查询员工
	public List<Employee> getEmployeeList(@Param("employee_name") String employee_name,@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	// 查询员工行数
	public Object getEmployeeCount(@Param("employee_name") String employee_name);

	// 获取员工id
	public Employee getEmployeeId(@Param("employee_id") int employee_id);

	// 修改员工
	public int updateEmployee(Employee employee);
}
